import service from '@/utils/request'

// @Tags TRecharge
// @Summary 创建tRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TRecharge true "创建tRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /tRecharge/createTRecharge [post]
export const createTRecharge = (data) => {
  return service({
    url: '/tRecharge/createTRecharge',
    method: 'post',
    data
  })
}

// @Tags TRecharge
// @Summary 删除tRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TRecharge true "删除tRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /tRecharge/deleteTRecharge [delete]
export const deleteTRecharge = (data) => {
  return service({
    url: '/tRecharge/deleteTRecharge',
    method: 'delete',
    data
  })
}

// @Tags TRecharge
// @Summary 批量删除tRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除tRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /tRecharge/deleteTRecharge [delete]
export const deleteTRechargeByIds = (data) => {
  return service({
    url: '/tRecharge/deleteTRechargeByIds',
    method: 'delete',
    data
  })
}

// @Tags TRecharge
// @Summary 更新tRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TRecharge true "更新tRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /tRecharge/updateTRecharge [put]
export const updateTRecharge = (data) => {
  return service({
    url: '/tRecharge/updateTRecharge',
    method: 'put',
    data
  })
}

// @Tags TRecharge
// @Summary 用id查询tRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.TRecharge true "用id查询tRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /tRecharge/findTRecharge [get]
export const findTRecharge = (params) => {
  return service({
    url: '/tRecharge/findTRecharge',
    method: 'get',
    params
  })
}

// @Tags TRecharge
// @Summary 分页获取tRecharge表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取tRecharge表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /tRecharge/getTRechargeList [get]
export const getTRechargeList = (params) => {
  return service({
    url: '/tRecharge/getTRechargeList',
    method: 'get',
    params
  })
}

// @Tags TRecharge
// @Summary 获取tRecharge表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取tRecharge表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /tRecharge/getTRechargeAllListToExport [get]
export const getTRechargeAllListToExport = (params) => {
  return service({
    url: '/tRecharge/getTRechargeAllListToExport',
    method: 'get',
    params
  })
}
